package com.albert.model;

import com.albert.tool.MessageType;

import lombok.Getter;
import lombok.Setter;

public class PackageModel {

    @Getter @Setter
    String receiverId;
    @Getter @Setter
    int code;
    @Getter @Setter
    int messageType;
    @Getter @Setter
    BaseModel data;
    public PackageModel(MessageType messageType, String receiverId, BaseModel data) {
        this.code = 200;
        this.receiverId = receiverId;
        this.messageType = messageType.getMessageType();
        this.data = data;
    }
}
